import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgValidateForm } from '@farris/devkit';
var DetailFormComponentViewmodelForm = /** @class */ (function (_super) {
    tslib_1.__extends(DetailFormComponentViewmodelForm, _super);
    function DetailFormComponentViewmodelForm() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    tslib_1.__decorate([
        NgFormControl({
            id: 'code_7b01a57e_n6lj',
            name: "{{code_7b01a57e_n6lj}}",
            binding: 'code',
            updateOn: 'blur',
            defaultI18nValue: '编号',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "code", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'name_4dc117c1_kspe',
            name: "{{name_4dc117c1_kspe}}",
            binding: 'name',
            updateOn: 'blur',
            defaultI18nValue: '姓名',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "name", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'remark_ac7db3d3_wp4b',
            name: "{{remark_ac7db3d3_wp4b}}",
            binding: 'remark',
            updateOn: 'blur',
            defaultI18nValue: '备注',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "remark", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'state_59aca058_yh2p',
            name: "{{state_59aca058_yh2p}}",
            binding: 'state',
            updateOn: 'blur',
            defaultI18nValue: '状态',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "state", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'gender_6758f973_mb7w',
            name: "{{gender_6758f973_mb7w}}",
            binding: 'gender',
            updateOn: 'blur',
            defaultI18nValue: '性别',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "gender", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'countryOrArea_5abb6b97_50tn',
            name: "{{countryOrArea_5abb6b97_50tn}}",
            binding: 'countryOrArea',
            updateOn: 'blur',
            defaultI18nValue: '所属国家或地区',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "countryOrArea", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'location_17b6eb21_0j6i',
            name: "{{location_17b6eb21_0j6i}}",
            binding: 'location',
            updateOn: 'blur',
            defaultI18nValue: '常驻地',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "location", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'idNumber_e35b56fb_m1rm',
            name: "{{idNumber_e35b56fb_m1rm}}",
            binding: 'idNumber',
            updateOn: 'blur',
            defaultI18nValue: '身份证号',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "idNumber", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'phoneNumber_46949650_j7yl',
            name: "{{phoneNumber_46949650_j7yl}}",
            binding: 'phoneNumber',
            updateOn: 'blur',
            defaultI18nValue: '手机号',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "phoneNumber", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'department_c3fcfcbe_htrh',
            name: "{{department_c3fcfcbe_htrh}}",
            binding: 'department',
            updateOn: 'blur',
            defaultI18nValue: '部门',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "department", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'age_1870ddca_yqvj',
            name: "{{age_1870ddca_yqvj}}",
            binding: 'age',
            updateOn: 'blur',
            defaultI18nValue: '年龄',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "age", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'xl_e276b867_sdih',
            name: "{{xl_e276b867_sdih}}",
            binding: 'xl',
            updateOn: 'blur',
            defaultI18nValue: '学历',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "xl", void 0);
    DetailFormComponentViewmodelForm = tslib_1.__decorate([
        Injectable(),
        NgValidateForm({
            formGroupName: '员工名单管理',
            enableValidate: true
        }),
        Injectable()
    ], DetailFormComponentViewmodelForm);
    return DetailFormComponentViewmodelForm;
}(Form));
export { DetailFormComponentViewmodelForm };
